package com.mrent.service;

import java.util.List;

import com.mrent.entity.OrderManager;

public interface OrderManagerService {
	
	
	/**
	 * 保存管理员.
	 * 
	 * @param orderManager.
	 */
	public void saveOrderManager(OrderManager orderManager);
	
	/**
	 * 店主列表.
	 * 
	 * @param page
	 * @return
	 */
	public List<OrderManager> listOrderManager(Page page);
	
	/**
	 * 修改管理员.
	 * 
	 * @param member
	 */
	public void modifyOrderManager(OrderManager orderManager);
	
	/**
	 * 根据订单号获取有效管理员.
	 * 
	 * @param orderNo
	 * @return
	 */
	public OrderManager getActivedByOrderNo(String orderNo);
	
	/**
	 * 根据订单号获取有效管理员.
	 * 
	 * @param orderNo
	 * @return
	 */
	public OrderManager getByOrderNo(String orderNo);
	
	/**
	 * 根据会员名及日期获取生效的店主.
	 * 
	 * @param year
	 * @param month
	 * @param day
	 * @return
	 */
	public List<OrderManager> getManagerByMemberDate(String orderMember,Integer year,Integer month,Integer day);

	
	/**
	 * 根据日期获取生效的店主.
	 * 
	 * @param year
	 * @param month
	 * @param day
	 * @return
	 */
	public List<OrderManager> getManagerByDate(Integer year,Integer month,Integer day);
}
